{template 'common/header'} {template 'common'}
<div class="main">
	<div class="panel panel-info">
		<div class="panel-heading">筛选</div>
		<div class="panel-body">
			<form action="./index.php" method="get" class="form-horizontal" role="form">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="laoyou_csyx" />
				<input type="hidden" name="do" value="data" />
				<input type="hidden" name="rid" value="{$rid}" />
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">日期</label>
					<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
						{php echo tpl_form_field_daterange('time', array('starttime'=>date('Y-m-d', $starttime),'endtime'=>date('Y-m-d', $endtime)));}
					</div>
					<div class="pull-right col-xs-12 col-sm-3 col-md-2 col-lg-2">
						<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">活动：{$huodong['title']}</div>
		<div style="position: relative">
			<div class="panel-body table-responsive">
				<table class="table table-hover" style="position: relative">
					<thead class="navbar-inner">
						<tr>
							<th width="300px">日期</th>
							<th width="200px">参与人数</th>
							<th width="200px">游戏次数</th>
							<th width="200px">摇奖次数</th>
							<th width="200px">中奖次数</th>
							<th width="200px">分享次数</th>
						</tr>
					</thead>
					<tbody>
						{loop $list $row}
						<tr>
							<td>{php echo date('Y-m-d',$row[time])}</td>
							<td>{$row[join]}</td>
							<td>{$row[play]}</td>
							<td>{$row[shake]}</td>
							<td>{$row[prize]}</td>
							<td>{$row[share]}</td>
						</tr>
						{/loop}
					</tbody>
				</table>
			</div>
		</div>
	</div>
	{$pager}
</div>

{template 'common/footer'}
